﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    <link rel="Shortcut Icon" href="../../Content/image/logo.png" />
    <link href="@Url.Content("~/Content/uploadify.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/bootstrap/bootstrap.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/Content/themes/bootstrap/bootstrap-responsive.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/imagePopup/magnific-popup.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/messenger/messenger.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/Content/themes/messenger/messenger-theme-future.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.5.3.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.uploadify.v2.1.0.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/swfobject.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/bootstrap-responsive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Group.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/messenger.min.js")" type="text/javascript"></script> 
    <script>    
        function search() {
            var searchkey = $("#searchkey").val();
            window.location.href = "/User/Search?key=" + searchkey;
        }
    </script>
    <style type="text/css">
        body {
            padding-top: 30px;
            padding-bottom: 40px;
            font-family:'Microsoft YaHei';
          }
        a
        {
            cursor:pointer;
            text-decoration:none;
        }
        table 
        {
            table-layout:fixed;
            word-break: break-all; 
            word-wrap: break-word; 
        }
        .nav-pills.nav-stacked > li > a:hover {
            background-color: #e0f0e9;
        }
        .nav-pills.nav-stacked > .active > a, .nav-pills.nav-stacked > .active > a:hover, .nav-pills.nav-stacked > .active > a:focus {
            background-color:#0088cc;
        }
        #backimg {
            background-image: url(../../Content/image/back1.jpg);
            padding-bottom: 30px;
        }
    </style>
</head>

<body>
    <div class="container" style="padding-bottom:20px">
        <div class="masthead">
            <ul class="nav nav-pills pull-right" style="font-size:16px">
                <li><img src="@ViewBag.User.iconUrl" class="img-circle" style="width:40px"/></li>
                <li class="dropdown"><a  class="dropdown-toggle"
       data-toggle="dropdown" href="#">@ViewBag.User.username<b class="caret"></b></a>
                        <ul class="dropdown-menu" style="font-size:12px">
                            <li><a href="/User/Info"><i class="icon-user"></i>&nbsp;&nbsp;&nbsp;个人信息</a></li>
                            <li><a href="/User/Contact"><i class="icon-list-alt"></i>&nbsp;&nbsp;&nbsp;联系人</a></li>
                            <li><a href="/User/Letters"><i class="icon-comment"></i>&nbsp;&nbsp;&nbsp;私信
                                @if (ViewBag.letterCount > 0)
                                {
                                    <div style="color:red;display:inline"><small>&nbsp;&nbsp;&nbsp;@ViewBag.letterCount</small></div> 
                                }</a>
                            </li>
                            <li class="divider"></li>
                                <li><a href="/User"><i class="icon-home"></i>&nbsp;&nbsp;&nbsp;主页</a></li>
                                <li><a href="/Account/LogOff"><i class="icon-off"></i>&nbsp;&nbsp;&nbsp;登出</a></li>
                       </ul>
                    </li> 
            </ul>
            <img src="../../Content/image/icon/groupicon.jpg" class="img-polaroid" style="width:60px"/>
            <img src="../../Content/image/heading.jpg" alt="FairyWorld" style="margin-left:15px"/>

          </div>
    </div>
    <section id="backimg" data-speed="50" data-type="background" style="background-position: 50% -120px;">
    <div class="container" style="font-size:16px;padding-top:20px">
       <div class="row-fluid">
           <div class="span2">
                 <ul id="categories" class="nav nav-pills nav-stacked">
                    <li><a href="../User/Index">个人主页</a></li>       
                    <li id="filesli">@Html.ActionLink("所有文件", "Files")</li>
                    <li id="musicli">@Html.ActionLink("音乐", "Music")</li>
                    <li id="imageli">@Html.ActionLink("图片", "Image")</li>
                    <li id="docli">@Html.ActionLink("文档", "Doc")</li>
                    <li id="infoli">@Html.ActionLink("团队信息", "Info")</li>
                    <li id="contactli">@Html.ActionLink("团队成员", "Contact")</li>
                    <li id="chatli">@Html.ActionLink("聊天室", "ChatRoom")</li>
                    <li id="logsli">@Html.ActionLink("操作日志", "LogManager")</li>
                </ul>
            </div>
           <div class="span10">
               @if ((@ViewBag.Title != "Contact") && (@ViewBag.Title != "Letters") && (@ViewBag.Title != "LogManager") && (@ViewBag.Title != "Info") && (@ViewBag.Title != "EditGroup") && (@ViewBag.Title != "ChatRoom"))
               {
               <div style="float:right">
                    <form class="navbar-search pull-left" action="/Group/Search">
                            <input type="text" class="search-query" placeholder="Search" id="searchkey"  name="key">
                            <a><img src="../../Content/image/searchicon.png" style="width:25px" onclick="search()"/></a>
                    </form>
                </div>}
                <div id="main">
                    @RenderBody()
                </div>
            </div>
        </div>
    </div>
    </section>
    
    <ul class="breadcrumb" style="float:right; background-color:#fff">
        <li><a href="#" style="text-decoration:none; color:#999; font-size:12px; cursor:default">© 2013 THSS</a><span class="divider">|</span></li>
        <li><a href="../Account/About" style="text-decoration:none; color:#999; font-size:12px">关于我们</a><span class="divider">|</span></li>
        <li><a href="../Account/Contact" style="text-decoration:none; color:#999; font-size:12px">联系我们</a></li>
    </ul>
</body>
</html>
